package com.goktech.olala.server.dao.goods;

import com.goktech.olala.server.pojo.goods.Picture;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PictureMapper {
    int deleteByPrimaryKey(Long pictureId);

    int insert(Picture record);

    List<Picture> selectAll();

    int updateByPrimaryKey(Picture record);

    /**
     * 通过实际id查询对应的图片
     * @param relationId
     * @return
     */
    List<Picture> selectByRelationId(@Param("relationId") String relationId);
}